home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 5
/
Gold Medal Software - Volume 5 (Gold Medal) (1995).iso
/
utils1
/
fdupl101.arj
/
FDUPSAMP.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-09-15
|
1KB
|
36 lines
ECHO OFF
IF "%1"=="" goto help
IF NOT EXIST %1 goto help
SET original=%1
IF EXIST otemp DEL otemp
REN %original otemp
PLN otemp temp1
RPSORT temp1 temp2 /+8:80
DEL temp1
FDUPLINS temp2 temp3 /d8
DEL temp2
RPSORT temp3 temp4
DEL temp3
PLN temp4 temp5 /r
DEL temp4
REN temp5 %original
CLS
ECHO All non-unique lines have now been eliminated from: %original
ECHO The original has been renamed to "otemp" in the current directory.
QUIT
:help
CLS
ECHO To eliminate all non-unique lines from an unsorted file, run this
ECHO batch file with the name of the file on the command line.
ECHO.
ECHO You must have these programs in your path: RPSORT, FDUPLINS and PLN.
ECHO RPSort is a widely available, fast, and powerful freeware sorting program.
ECHO RPSRT102.zip should be on all the BBS sites listed in REIGNWAR.TXT.
ECHO.
ECHO PLN is a utility to sequentially number lines in a text file, to prepare
ECHO it for printing or sorting. FDUPLINS eliminates non-unique lines from a
ECHO sorted text file.
ECHO.
ECHO FDUPLINS and PLN are freeware by David Daniel Anderson, and should be
ECHO available on most of the BBS sites listed in REIGNWAR.TXT.